package com.CNMedical.system.domain.vo;

import com.diboot.core.binding.annotation.BindEntity;
import com.diboot.core.binding.annotation.BindField;
import com.CNMedical.system.domain.entity.AppletExamScore;
import com.CNMedical.system.domain.entity.AppletKnowledge;
import com.CNMedical.system.domain.entity.AppletUser;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 考试成绩对象 applet_exam_score
 * 
 * @author tang
 * @date 2023-03-28
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AppletExamScoreVO extends AppletExamScore
{

    @BindEntity(entity = AppletKnowledge.class,condition = "this.knowledge_id = id")
    private AppletKnowledge appletKnowledge;

    private Long rank;

    @BindField(entity = AppletKnowledge.class, field = "title" ,condition = "this.knowledge_id = id")
    private String knowledgeTitle;

    @BindField(entity = AppletUser.class, field = "nickName" ,condition = "this.user_id = id")
    private String userName;
}
